package com.example.crm.mapper;

import com.example.crm.entity.Right;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zz
 * @since 2024-06-06
 */
public interface RightMapper extends BaseMapper<Right> {
    /**
     * 根据角色ID查询权限
     */
    List<Right> selectByRoleId(@Param("roleId") Integer roleId);
}
